<template>
    <div>
        <component :is="`Type1`"></component>
    </div>
</template>
<script>
const Type1 = () => import('@/views/home/ytcars-panel/video-management/record')

export default {
    data() {
        return {
        }
    },
    components: {
        Type1
    },
    created() {
    },
    beforeCreate() {
        if(!this.$parent.tabLists.find(item => item.name == "videoConsultDetails")) {
            this.$parent.tabLists.push({
                label: "数据明细", name: "videoConsultDetails"
            })
        }
    },
    beforeRouteLeave (to, from, next) {
        this.$parent.tabLists = this.$parent.tabLists.filter(item => item.name != "videoConsultDetails")
        next()
    }
}
</script>